class MyThread implements Runnable
{
	int i;

	public void run()
	{
		while(true)
		{
			System.out.println("a"+i++);
			if(i==3)
			{
				break;
			}
		}
	}
}
